﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Calendar 禁用日期</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" /><link href="../demo.css" rel="stylesheet" type="text/css" />

    
    <script src="../../scripts/boot.js" type="text/javascript"></script>
    
    
</head>
<body>
    <h1>Calendar 禁用日期</h1>    
    
    <div id="calendar1" class="mini-calendar" ondrawdate="onDrawDate" showTodayButton="false"></div>
    
    <script type="text/javascript">
        function onDrawDate(e) {
            var date = e.date;
            var d = new Date();

            if (date.getTime() < d.getTime()) {
                e.allowSelect = false;
            }
        }
    </script>

    <div class="description">
        <h3>Description</h3>
        <p>禁止选择本日之前的日期。</p>
    </div>
</body>
</html>